import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './config/rem'
import FastClick from 'fastclick'
import axios from 'axios'

// 判断是否是安卓或者ios
const str= navigator.userAgent.toLowerCase();
const ver=str.match(/cpu iphone os (.*?) like mac os/);
// 如果不是（浏览器测试），则添加fastclick处理，如果是则不处理
if (!ver || parseInt(ver[1])< 11){
	if ('addEventListener' in document) {
		document.addEventListener('DOMContentLoaded', function() {
			FastClick.attach(document.body);
		}, false);
	}
}

Vue.prototype.$axios = axios
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
